
toastr.options = {
    closeButton: true, // 显示 关闭按钮
    debug: false,
    positionClass: 'toast-top-center', // 提示框显示的位置
    onclick: null,
    showDuration: '300',
    hideDuration: '1000',
    timeOut: '5000',
    extendedTimeOut: '1000',
    showEasing: 'swing',
    hideEasing: 'linear',
    showMethod: 'fadeIn',
    hideMethod: 'fadeOut',
};

const lis = document.querySelectorAll('li');
lis.forEach(v => {
    v.addEventListener('click', function () {
        toastr.success(`你点击了${v.innerText}`)
    })
})